package com.example.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.entity.Factor;

public interface FactorRepository extends JpaRepository<Factor, Long> {
	
	public List<Factor> findByFeeOrfacotr(String feeOrfacotr);
	
	public Factor findById(long id);

	public Factor findByFactorName(String str);
	
	@Query(value="select factor_Name from Factor",nativeQuery=true)//原生sql语句
	List<String> findAllProductName();
	
}
